package net.luerything.restlet.gwt.rpc;

/**
 * PolicyFileResolver.
 *
 * @author keke
 */
public interface PolicyFileResolver {
  /**
   * Get the URI of the GWT RPC policy file. <p/>
   * Usually, the file content is loaded using Restlet#get.
   *
   * @param moduleBaseName the base name of a gwt module.
   * @param strongName     the strong hash name of GWT RPC policy.
   * @return the URI of the policy file. Will return <code>null</code> if not found.
   */
  String getPolicyFileURI(String moduleBaseName, String strongName);
}
